<link href="css/withdraw.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/accourt.css"/>
<style>
#if{border:none;}
#PopWindow{ text-align:left; border:8px solid #767576; padding:20px; }
#PopWindow h3.close{padding:5px 10px;}
#PopWindow a.fr{float:right; cursor:pointer;}
.account em{color:#FF5500; font-size:18px; font-weight:bold }
.rightWrap .bank_r .bank_rt h4{ float:left; width:160px; line-height:28px; text-align:right; margin-top:0;}
.rightWrap .bank_r .bank_rt .error{display:none; background:url(images/jingao.png) 0 19px no-repeat; padding:18px; margin-left:20px;}
.account{ width:180px; height:20px; line-height:20px; padding:2px 4px; border:1px solid #ABADB3;}
.confirm{width:103px;height: 34px;background: url(images/confirm.png) no-repeat;border: 0;margin-bottom: 30px;cursor: pointer; margin-top:20px;}
.mon_tran{ width:100px;}
</style>
<script src="js/ui/PopWindow.js"></script>
<script type="text/javascript">
function diff(){
	if($("#account").val()!=$("#account_ok").val()){
		$("#error").show();
	}
	else{
		$("#error").hide();
	}
}
function sub(){
    if($("#error").css('display')=='inline'){
        alert('两次输入的帐号不一样');
        return false;
    }
	var account=$("#account").val();
	var money=$("#money").val();
	if(account.length<6 && account!="test" && account!="test1"){
		alert("账号不正确");
		return;
	}
	else{
		$.ajax({url:"../call/getFile.php",data:{account:account},success:function(t){
			if(t){
				if(confirm('确定向'+t+'（'+account+'）转账'+money+'元？')){
					document.forms['move'].submit();
				}
			}
			else{
				alert("转账对象不存在,请确认后重试。");
			}
		}});
	}
}
</script>
<div id="right" class="rightWrap"><!--BEGIN OF RIGHT-->
	<?include("account_bar.tpl")?>
	<div class="aboutmoney">
		<span class="absp">当前账户余额：<strong class="money">{$money}</strong> 元</span>
	</div>
	<div class="bank_r">
	<iframe name="ifr" style="display:none;"></iframe>
	<form action="call/setFund.php" name="move" target="ifr">
		<input type="hidden" name="act" value="m" />
		<div class="bank_rt">
			<h4>账号：</h4>
			<span><input type="text" name="account" id="account" class="account" /></span>
		</div>
		<div class="bank_rt">
			<h4>确认账号：</h4>
			<span><input type="text" name="account_ok" id="account_ok" class="account" onblur="diff()" /></span><span id="error" class="error">您两次输入账号不一致，请重新输入</span>
		</div>
		<div class="bank_rt">
			<h4>转账金额：</h4>
			<span><input type="text" name="money" id="money" class="account mon_tran" value="" /> 元</span>
		</div>
		<div class="bank_rt">
			<h4>&nbsp;</h4>
			<span><input type="button" class="confirm" onclick="sub();"/></span>
		</div>
	</form>
	</div>
	<div class="aboutr">
		<!-- <h3>关于转账</h3>
		<p> 1、资金帐户金额满<span class="redm">100元</span>，可以转账操作。<br />
			2、最高转账金额不能超过<span class="redm">20000元</span>。<br />
			3、转账申请将会在24小时到72小时内进行处理。<br />
			4、每个工作日17:00前，财务人员会对转账申请进行处理，17:00后提交的申请，将在下个工作日处理。
		</p> -->
	</div>
</div><!--EOF RIGHT-->